/**
 * Minister.java
 * create by Lisq
 * date 2014-3-3
 */
package com.lsq.duo_li_mo_shi;

/**
 * @author Lisq 
 * 大臣们悲惨了，一个皇帝都伺候不过来了，现在还来了两个个皇帝 
 * TND，不管了，找到个皇帝，磕头，请安就成了！
 */
public class Minister {
	@SuppressWarnings("static-access")
	public static void main(String[] args) {
		int ministerNum = 10; // 10个大臣
		for (int i = 0; i < ministerNum; i++) {
			Emperor emperor = Emperor.getInstance();
			System.out.print("第" + (i + 1) + "个大臣参拜的是：");
			emperor.emperorInfo();
		}
		
		//只参拜某人
		for (int j = 0; j < ministerNum; j++) {
			Emperor emperor = Emperor.getInstance(1);
			System.out.print("第" + (j + 1) + "个大臣参拜的是：");
			emperor.emperorInfo();
		}
	}
}